<!DOCTYPE HTML>
<html class="no-js" lang="en">
<head>    
    <?php wp_enqueue_script("jquery"); ?>
    <?wp_head();?>
</head>
<body>
    <!-- HEADER -->
    <header class="container">
        <div class="row">
            <div class="col-lg-4 logo">
                <a href="<?bloginfo('url');?>" title="<?bloginfo('name');?>"><img src="<?bloginfo('template_url');?>/webroot/img/logo-1.png" alt="<?bloginfo('name');?>" /></a>
            </div>
            <div class="col-lg-4 text-center info">
                <? if(!is_active_sidebar('cabecalho-1')):?>
                    <p>ATENDIMENTO POR EMAIL</p>
                    <h3><a href="mailto:contato@morebem.imb.br"><i class="icon-envelope-alt icon-fixed-width"></i>contato@morebem.imb.br</a></h3>
                <?php else:?>
                    <?php dynamic_sidebar('cabecalho-1');?>
                <?php endif;?>
            </div>
            <div class="col-lg-4 text-center info">
                <? if(!is_active_sidebar('cabecalho-2')):?>
                    <p>ATENDIMENTO POR TELEFONE</p>
                    <h3><i class="icon-phone icon-fixed-width"></i>(86)3233-9998 | 3234-3409</a></h3>                
                <?php else:?>
                    <?php dynamic_sidebar('cabecalho-2');?>
                <?php endif;?>
            </div>
        </div>
    </header>    
    <!-- /HEADER -->
    <!-- MENU -->
    <nav class="container navbar navbar-default">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">            
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a href="#"><img src="<?bloginfo('template_url');?>/webroot/img/logo-2.png" alt="<?bloginfo('name');?>" /></a>
        </div>
        <div class="navbar-collapse collapse navbar-responsive-collapse">
            <?php if(has_nav_menu('menu-principal')):?>
                <?php 
                    wp_nav_menu( array(
                    'menu' => 'top_menu',
                    'depth' => 2,
                    'container' => false,
                    'menu_class' => 'nav navbar-nav',
                    'fallback_cb' => 'wp_page_menu',
                    //Process nav menu using our custom nav walker
                    'walker' => new wp_bootstrap_navwalker())
                    );
                ?>
            <?php else:?>
                <ul class="nav navbar-nav">
                    <li class="active"><a href="#">PRINCIPAL</a></li>
                    <li><a href="#">SOBRE NÓS</a></li>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">IMÓVEIS<i class="icon-caret-down icon-fixed-width"></i></a>
                        <ul class="dropdown-menu">
                            <li><a href="#">LANÇAMENTOS</a></li>
                            <li><a href="#">PRONTOS</a></li>
                            <li><a href="#">EM OBRAS</a></li>
                            <li><a href="#">TERRENOS/SÍTIOS</a></li>
                        </ul>
                    </li>
                    <li><a href="#">BLOG</a></li>
                    <li><a href="#">CONTATO</a></li>
                </ul>
            <?php endif;?>
        </div>
    </nav>
    <!-- /MENU -->
    
